using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using XPExplorerBar;

namespace smartBrowser.GUI
{
    public partial class TabPageForm : Form
    {
        public TabPageForm()
        {
            InitializeComponent();
        }

        private void TabPageForm_Load(object sender, EventArgs e)
        {
            this.webBrowser.Navigated += new WebBrowserNavigatedEventHandler(cleanTaskPane);
            this.webBrowser.Focus();
        }

        public WebBrowser WebBrowser 
        {
            get { return this.webBrowser; }
        }

        public String StatusText
        {
            get { return this.siteTSSL.Text; }
            set { this.siteTSSL.Text = value; }
        }

        public ToolStripProgressBar ProgressBar
        {
            get { return this.progressBar; }
        }

        public TaskPane TaskPane
        {
            get { return this.taskPane; }
        }

        private void cleanTaskPane(object sender, WebBrowserNavigatedEventArgs e)
        {
            this.taskPane.Controls.Clear();
        }
    }
}